<div class="form">
<?php $form=$this->beginWidget('CActiveForm', array(
    'id'=>'changepassword-form',
    'enableClientValidation'=>false,
	'action'=>Yii::app()->createUrl('UserPrivatePage/UpdatePassword'),
	'method'=>'post',
 //   'clientOptions'=>array(
   // 'validateOnSubmit'=>true,
	//'enableAjaxValidation'=>true,
//),
)); 

$this->menu=array(
	array('label'=>'Change Email', 'url'=>array('changeEmail')),
	array('label'=>'Show User Info', 'url'=>array('showUserInfo')),
);
?>
	<p class="note">
		Fields with <span class="required">*</span> are required.
	</p>
	<?php echo $form->errorSummary($model); ?>
	<div class="row">
	<?php echo $form->labelEx($model,'old_pwd'); ?>
	<?php echo $form->passwordField($model,'old_pwd'); ?>
	<?php echo $form->error($model,'old_pwd'); ?>
	</div>

	<div class="row">
	<?php echo $form->labelEx($model,'pwd'); ?>
	<?php echo $form->passwordField($model,'pwd'); ?>
	<?php echo $form->error($model,'pwd'); ?>
	</div>

	<div class="row">
	<?php echo $form->labelEx($model,'pwd_repeat'); ?>
	<?php echo $form->passwordField($model, 'pwd_repeat'); ?>
	<?php echo $form->error($model,'pwd_repeat'); ?>
	</div>
	<div class="row buttons">
	<?php echo CHtml::submitButton('Change Password'); ?>
	</div>

	<?php $this->endWidget(); ?>
</div>
<!-- form -->
